package com.example.springboot.jpa.service;

import com.example.springboot.jpa.dao.UserTemplateDao;
import com.example.springboot.jpa.entity.User;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;

@Service
public class UserTemplateService {

	@Resource
	private UserTemplateDao userTemplateDao;

	// 查询
	public User getUserById(String username) {
		User user = userTemplateDao.getUserById(username);
		return user;
	}

}
